import request from '@/utils/request'

// 查询仓储盘点列表
export function listStockCheck(query) {
  return request({
    url: '/wms/stockCheck/list',
    method: 'get',
    params: query
  })
}

// 查询仓储盘点详细
export function getStockCheck(id) {
  return request({
    url: '/wms/stockCheck/' + id,
    method: 'get'
  })
}

// 新增仓储盘点
export function addStockCheck(data) {
  return request({
    url: '/wms/stockCheck',
    method: 'post',
    data: data
  })
}

// 修改仓储盘点
export function updateStockCheck(data) {
  return request({
    url: '/wms/stockCheck',
    method: 'put',
    data: data
  })
}

// 删除仓储盘点
export function delStockCheck(id) {
  return request({
    url: '/wms/stockCheck/' + id,
    method: 'delete'
  })
}
